#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/1/27 11:33
# @Author  : Aries
# @Site    : 
# @File    : ascii2ras.py
# @Software: PyCharm Community Edition


# Name: RasterToASCII_Ex_02.py
# Description: Converts a raster dataset to an ASCII file representing
#    raster data.
# Requirements: None

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inRaster = "elevation"
outASCII = "c:/output/elevation.asc"

# Execute RasterToASCII
arcpy.RasterToASCII_conversion(inRaster, outASCII)